package com.liu.project.system.controller;

import cn.hutool.core.lang.tree.TreeNode;
import com.liu.common.respose.Resp;
import com.liu.project.system.service.MenuService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author lxl
 * @date 2023/1/30 13:27
 */
@RestController
@RequestMapping("/menu")
public class MenuController {
    @Resource
    private MenuService menuService;

    @PostMapping("/nodeList")
    public Resp<List> nodeList() {
        return Resp.success(menuService.nodeList());
    }

}
